<!DOCTYPE html>
<!-- saved from url=(0045)http://hy.yungoucms.cn/?/mobile/cart/cartlist -->
<html>

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

  <title>shopping cart</title>
  <meta content="app-id=518966501" name="apple-itunes-app">
  <meta name="viewport"
    content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=no, maximum-scale=1.0">
  <meta content="yes" name="apple-mobile-web-app-capable">
  <meta content="black" name="apple-mobile-web-app-status-bar-style">
  <meta content="telephone=no" name="format-detection">
  <link href="./all/comm.css" rel="stylesheet" type="text/css">
  <link href="./all/main.css" rel="stylesheet" type="text/css">
  <link href="./all/cartList.css" rel="stylesheet" type="text/css">
  <script type="text/javascript">
    var cartlist_jsMore = 'More than 100 people, please participate carefully!';
  </script>
  <script src="./all/jquery190.js" language="javascript" type="text/javascript"></script>
  <script src="./all/pageDialog.js" language="javascript" type="text/javascript"></script>
  <!-- <script language="javascript" type="text/javascript" src="./all/Cartindex.js"></script> -->
  <!-- <script language="javascript" type="text/javascript" src="./all/Bottom.js"></script> -->
  <script language="javascript" type="text/javascript" src="./all/BottomFun.js"></script>
  <script language="javascript" type="text/javascript" src="./all/CartindexFun.js"></script>
  <script language="javascript" type="text/javascript" src="./all/pageDialog.js"></script>
</head>

<body style="zoom: 1;">
  <div class="h5-1yyg-v1" id="loadingPicBlock">
    <input name="hidLogined" type="hidden" id="hidLogined" value="1">
    <style type="text/css">
      body {
        background: #f4f4f4;
      }

      .g-Cart {
        padding: 10px;
        margin-bottom: 100px;
      }

      #cartBody {
        background: #fff;
      }

      li:hover {
        color: #dc332d;
      }

      span:hover {
        color: #dc332d;
      }

      .Progress-bar .Pro-bar-li li em {
        font-size: 14px;
      }
    </style>
    <article class="clearfix g-Cart-list">
      <ul id="cartBody">
        <li> <a class="fl u-Cart-img" href="http://hy.yungoucms.cn/?/mobile/mobile/item/2095"> <img
              src="./all/goods.jpg" border="0" alt=""> </a>
          <div class="u-Cart-r">
            <p class="z-Cart-tt"> <a href="http://hy.yungoucms.cn/?/mobile/mobile/item/2095" class="gray3"> (Phase3)test
              </a> </p>
            <ins class="z-promo gray9">Remaining <em class="arial">49</em> person-times </ins>
            <section class="pencentbox">
              <div class="Progress-bar">
                <p class="u-progress"> <span class="pgbar" style="width:51%;"> <span class="pging"></span> </span> </p>
              </div>
            </section>
            <p class="f-Cart-Other">
              <input type="hidden" value="1" class="yunjiage2095">

              <a href="javascript:;" class="fr z-del" name="delLink" cid="2095"></a> <a href="javascript:;"
                class="fl z-jian ">-</a>
              <input id="txtNum2095" name="num" type="text" maxlength="7" yunjiage="1" value="3" class="fl z-amount">
              <a href="javascript:;" class="fl z-jia ">+</a>

              <input id="shuliang2095" type="hidden" value="3">
              <input type="hidden" value="49">
              <input type="hidden" value="1" class="yunjiage2095">
            </p>
          </div>
          <div
            style="float: left;color: #333;text-align: center;line-height: 28px;font-size: 14px;position: relative;margin-bottom: 5px;width: 100%;padding-left: 90px;margin-top: 6px;">
            <style>
              .tags div,
              .tags li {
                float: left;
                font-size: 14px;
                width: 40px;
                height: 30px;
                line-height: 30px;
                vertical-align: middle;
                text-align: center;
                border: 1px solid #CACACA;
                border-radius: 5px;
                margin-right: 5px;
                background-color: #EEEEEE;
              }

              .pencentbox {
                margin: 19px 10px -27px 5px;
                position: relative;
                top: -13px;
              }

              .pencentbox .Progress-bar .Pro-bar-li li {
                font-size: 12px;
              }

              .pencentbox .Progress-bar .Pro-bar-li li.P-bar03 em {
                color: #2af;
              }

              .pencentbox .scale {
                width: 30px;
                line-height: 16px;
                text-align: center;
                font-size: 10px;
                color: #fff;
                border-radius: 3px;
                background: #db322d;
                position: absolute;
                top: -22px;
                margin-left: -15px;
              }

              .pencentbox .scale::after {
                display: inline-block;
                content: " ";
                width: 0;
                height: 0;
                border-left: 4px solid transparent;
                border-top: 4px solid #db322d;
                border-right: 4px solid transparent;
                position: absolute;
                bottom: -4px;
                left: 10px;
              }
            </style>
            <ul class="tags" style="margin: 0 auto;width: 100%;">
              <li id="Li1" data-id="2095" data-val="20">20</li>
              <li id="Li2" data-id="2095" data-val="49">All</li>
            </ul>
          </div>
        </li>
        <li> <a class="fl u-Cart-img" href="http://hy.yungoucms.cn/?/mobile/mobile/item/2100"> <img
              src="./all/74455580250569.png" border="0" alt=""> </a>
          <div class="u-Cart-r">
            <p class="z-Cart-tt"> <a href="http://hy.yungoucms.cn/?/mobile/mobile/item/2100" class="gray3"> (Phase4)测试
              </a> </p>
            <ins class="z-promo gray9">Remaining <em class="arial">111</em> person-times </ins>
            <section class="pencentbox">
              <div class="Progress-bar">
                <p class="u-progress"> <span class="pgbar" style="width:0%;"> <span class="pging"></span> </span> </p>
              </div>
            </section>
            <p class="f-Cart-Other">
              <input type="hidden" value="1" class="yunjiage2100">

              <a href="javascript:;" class="fr z-del" name="delLink" cid="2100"></a> <a href="javascript:;"
                class="fl z-jian ">-</a>
              <input id="txtNum2100" name="num" type="text" maxlength="7" yunjiage="1" value="3" class="fl z-amount">
              <a href="javascript:;" class="fl z-jia ">+</a>

              <input id="shuliang2100" type="hidden" value="3">
              <input type="hidden" value="111">
              <input type="hidden" value="1" class="yunjiage2100">
            </p>
          </div>
          <div
            style="float: left;color: #333;text-align: center;line-height: 28px;font-size: 14px;position: relative;margin-bottom: 5px;width: 100%;padding-left: 90px;margin-top: 6px;">
            <style>
              .tags div,
              .tags li {
                float: left;
                font-size: 14px;
                width: 40px;
                height: 30px;
                line-height: 30px;
                vertical-align: middle;
                text-align: center;
                border: 1px solid #CACACA;
                border-radius: 5px;
                margin-right: 5px;
                background-color: #EEEEEE;
              }

              .pencentbox {
                margin: 19px 10px -27px 5px;
                position: relative;
                top: -13px;
              }

              .pencentbox .Progress-bar .Pro-bar-li li {
                font-size: 12px;
              }

              .pencentbox .Progress-bar .Pro-bar-li li.P-bar03 em {
                color: #2af;
              }

              .pencentbox .scale {
                width: 30px;
                line-height: 16px;
                text-align: center;
                font-size: 10px;
                color: #fff;
                border-radius: 3px;
                background: #db322d;
                position: absolute;
                top: -22px;
                margin-left: -15px;
              }

              .pencentbox .scale::after {
                display: inline-block;
                content: " ";
                width: 0;
                height: 0;
                border-left: 4px solid transparent;
                border-top: 4px solid #db322d;
                border-right: 4px solid transparent;
                position: absolute;
                bottom: -4px;
                left: 10px;
              }
            </style>
            <ul class="tags" style="margin: 0 auto;width: 100%;">
              <li id="Li1" data-id="2100" data-val="20">20</li>
              <li id="Li2" data-id="2100" data-val="50">50</li>
              <li id="Li3" data-id="2100" data-val="100">100</li>
              <li id="Li4" data-id="2100" data-val="111">All</li>
            </ul>
          </div>
        </li>
      </ul>
    </article>
    <div id="all" class="g-Total-bt">
      <dl>
        <dd>
          <input id="allNum" type="hidden">
          <label for="allNum"></label>
          <div id="keyboard">
            <ul>
              <li>1</li>
              <li>2</li>
              <li>3</li>
              <li>4</li>
              <li>5</li>
              <li>6</li>
              <li>7</li>
              <li>8</li>
              <li>9</li>
              <li>0</li>
              <li>Delete</li>
              <li>Sure</li>
              <div class="clear"></div>
            </ul>
          </div>
          <p>person-times/piece</p>
        </dd>
        <dd>
          <input id="addMore" value="One click Soha" type="button">
          <input id="clearAll" value="clear" type="button">
        </dd>
      </dl>
    </div>
    <div id="divBtmMoney" class="g-Total-bt g-car-new">
      <dl>
        <dt class="gray6">
          <p class="money-total">Total:&nbsp;<em class="orange">₹6.00 </em></p>
          <p class="pro-total">Total&nbsp;<em>2&nbsp;</em>goods</p>
        </dt>
        <dd> <a href="javascript:;" id="a_payment" class="w_account">&nbsp;Payment</a> </dd>
      </dl>
    </div>
    <div id="divNone" class="haveNot z-minheight" style="display:none"> <s></s>
      <p>Your shopping cart is empty</p>
      <p class="btn-jumpBuy">
        <a href="http://hy.yungoucms.cn/"><span>Quickly stroll around</span></a>
        <a href="http://hy.yungoucms.cn/?/mobile/home/mycollect"><span>My collection</span></a>
      </p>
      <div id="intro"> <span class="title"><s></s>Popular recommendation</span>
        <ul>
          <div id="addAll">
            <p>Buy All</p>
          </div>
          <li> <a href="http://hy.yungoucms.cn/?/mobile/mobile/item/2095" class="g-pic"> <img src="./all/goods.jpg"
                width="136" height="136"> </a>
            <p class="g-name"> <a href="http://hy.yungoucms.cn/?/mobile/mobile/item/2095">test </a> </p>
            <ins class="gray9">value: ₹100 </ins>
            <div class="btn-wrap">
              <div class="Progress-bar">
                <p class="u-progress"> <span class="pgbar" style="width:51%"> <span class="pging"></span> </span> </p>
              </div>
              <div class="gRate" codeid="2095"> <a href="javascript:;"> <s></s> </a> </div>
            </div>
          </li>
          <li> <a href="http://hy.yungoucms.cn/?/mobile/mobile/item/1138" class="g-pic"> <img
                src="./all/80556852380293.png" width="136" height="136"> </a>
            <p class="g-name"> <a href="http://hy.yungoucms.cn/?/mobile/mobile/item/1138">Điện thoại Apple iPhone 11 -
                Hàng Chính Hãng VN/A - Mới 100% (Chưa Kích Hoạt) </a> </p>
            <ins class="gray9">value: ₹17490000 </ins>
            <div class="btn-wrap">
              <div class="Progress-bar">
                <p class="u-progress"> <span class="pgbar" style="width:0.1%"> <span class="pging"></span> </span> </p>
              </div>
              <div class="gRate" codeid="1138"> <a href="javascript:;"> <s></s> </a> </div>
            </div>
          </li>
          <li> <a href="http://hy.yungoucms.cn/?/mobile/mobile/item/2089" class="g-pic"> <img
                src="./all/89274773096463.png" width="136" height="136"> </a>
            <p class="g-name"> <a href="http://hy.yungoucms.cn/?/mobile/mobile/item/2089">Innova V 2.0AT </a> </p>
            <ins class="gray9">value: ₹100000000 </ins>
            <div class="btn-wrap">
              <div class="Progress-bar">
                <p class="u-progress"> <span class="pgbar" style="width:0%"> <span class="pging"></span> </span> </p>
              </div>
              <div class="gRate" codeid="2089"> <a href="javascript:;"> <s></s> </a> </div>
            </div>
          </li>
          <li> <a href="http://hy.yungoucms.cn/?/mobile/mobile/item/2091" class="g-pic"> <img
                src="./all/79291359801429.png" width="136" height="136"> </a>
            <p class="g-name"> <a href="http://hy.yungoucms.cn/?/mobile/mobile/item/2091">Mercedes-Benz C 200 Exclusive
                2020 | Vietnam Star </a> </p>
            <ins class="gray9">value: ₹100000000 </ins>
            <div class="btn-wrap">
              <div class="Progress-bar">
                <p class="u-progress"> <span class="pgbar" style="width:0%"> <span class="pging"></span> </span> </p>
              </div>
              <div class="gRate" codeid="2091"> <a href="javascript:;"> <s></s> </a> </div>
            </div>
          </li>
        </ul>
      </div>
    </div>

    <style type="text/css">
      .smailnav {
        bottom: 100px !important;
      }
    </style>
    <style>
      .footerdi .f_home a.cur i {
        background-position: 0 -112px !important;
      }

      .footerdi .f_whole a.cur i {
        background-position: 0 -222px !important;
      }

      .footerdi .f_jiexiao a.cur i {
        background-position: 0 -169px !important;
      }

      .footerdi .f_car a.cur i {
        background-position: 0 1px !important;
      }

      .footerdi .f_personal a.cur i {
        background-position: 0 -57px !important;
      }

      #btnGotoTop {
        padding: 0;
        width: 40px;
        height: 40px;
        border-radius: 40px;
        background: rgba(0, 0, 0, .6);
        box-shadow: 0 1px 8px #666;
        position: fixed;
        right: 8px;
      }

      #btnGotoTop .s1 {
        background: url(./all/fast-nav-new.png) 0 -163px no-repeat;
        background-size: 21px auto;
        margin: 9px auto;
        display: block;
        width: 21px;
        height: 21px;
      }

      .smailnav {
        position: fixed;
        right: 0px;
        bottom: 55px;
        z-index: 99999999;
        height: auto;
      }

      #top_div {
        display: none;
        width: 40px;
        height: 80px;
        opacity: 0.8;
        border-bottom-left-radius: 5px;
        border-top-left-radius: 5px;
      }

      #top_div1 {
        display: block;
        width: 40px;
        height: 40px;
        background: #242424;
        opacity: 0.8;
        border-bottom-left-radius: 5px;
        border-top-left-radius: 5px;
      }

      #btnGotoTop3 {
        display: none;
        width: 100px;
        position: absolute;
        right: 0;
        top: -209px;
        padding: 0 10px;
        background: #242424;
        opacity: 0.7;
        border-bottom-left-radius: 5px;
        border-top-left-radius: 5px;
      }

      #btnGotoTop3 a {
        display: block;
        height: 40px;
        line-height: 40px;
        width: 100%;
        padding: 0;
        color: #fff;
        clear: both;
      }

      #btnGotoTop3 .xb {
        display: block;
        width: 10px;
        height: 10px;
        background: #242424;
        border-left: 1px solid #242424;
        border-top: 1px solid #242424;
        -webkit-transform: rotate(45deg);
        position: absolute;
        bottom: -5px;
        right: 10px;
      }

      #btnGotoTop3 a i {
        background: url(./all/fast-nav-new.png) 0 0px no-repeat;
        width: 20px;
        height: 20px;
        margin: 10px 5px 0 0;
        display: block;
        vertical-align: middle;
        float: left;
        position: relative;
        background-size: 25px;
        left: 2px;
      }

      #btnGotoTop3 a em {
        display: block;
        float: left;
        line-height: 42px;
      }

      #btnGotoTop3 .home {
        border-bottom: 1px solid #4b4b4b;
      }

      #btnGotoTop3 .home i {
        background-position: 0 1px;
        background-size: 28px auto;
        height: 22px;
      }

      #btnGotoTop3 .glist {
        border-bottom: 1px solid #4b4b4b;
      }

      #btnGotoTop3 .glist i {
        background-position: 0 -117px;
        background-size: 19px;
      }

      #btnGotoTop3 .lottry {
        border-bottom: 1px solid #4b4b4b;
      }

      #btnGotoTop3 .lottry i {
        background-position: 0 -35px;
        left: 0;
      }

      #btnGotoTop3 .user {
        border-bottom: 1px solid #4b4b4b;
      }

      #btnGotoTop3 .user i {
        background-position: 0 -113px;
      }

      #btnGotoTop3 .sx i {
        background-position: 0 -213px;
        background-size: 22px auto;
      }
    </style>
    <div style="height:60px;clear:both;"></div>
    <div class="footerdi" style="bottom: 0px;">
      <ul>
        <li class="f_home"> <a title="home page" href="http://hy.yungoucms.cn/" class=""> <i>&nbsp;</i> Home </a> </li>
        <li class="f_whole"> <a title="All goods" href="http://hy.yungoucms.cn/?/mobile/mobile/glist" class="">
            <i>&nbsp;</i> Goods </a> </li>
        <li class="f_jiexiao"> <a title="Latest announcement"
            href="http://hy.yungoucms.cn/?/mobile/mobile/lottery/auto_lottery" class=""> <i>&nbsp;</i> Announce </a>
        </li>
        <li class="f_car"> <a title="Shopping Cart" href="http://hy.yungoucms.cn/?/mobile/cart/cartlist" class="cur"> <i
              id="btnCart" style="position: relative;"><em>2</em></i> Cart </a> </li>
        <li class="f_personal"> <a title="My homepage" href="http://hy.yungoucms.cn/?/mobile/home" class="">
            <i>&nbsp;</i> Personal </a> </li>
      </ul>
      <div class="smailnav">
        <div id="btnGotoTop3" class="smailgb" style="display: none;">
          <a class="home" href="http://hy.yungoucms.cn/">
            <i></i> <em>Home</em>
          </a>
          <a class="glist" href="http://hy.yungoucms.cn/?/mobile/mobile/glist">
            <i></i> <em>All goods</em>
          </a>
          <a class="lottry" href="http://hy.yungoucms.cn/?/mobile/mobile/lottery">
            <i></i>
            <em>Latest announcement</em>
          </a>
          <a class="user" href="http://hy.yungoucms.cn/?/mobile/user/login">
            <i></i>
            <em>My mall</em>
          </a>
          <a id="shuaxin" class="sx" href="javascript:location.reload()">
            <i></i>
            <em>Refresh</em>
          </a>
          <i class="xb"></i>
        </div>
        <div id="top_div" style="display: none;">
          <a id="btnGotoTop" href="javascript:;">
            <i class="s1"></i>
          </a>
        </div>
      </div>

      <script type="text/javascript">
        //返回顶部
        $(function () {
          $("#btnGotoTop").click(function () {
            $("html,body").animate({
              scrollTop: 0
            }, 1500);
          });
        });

        window.onscroll = function () {
          var t = document.documentElement.scrollTop || document.body.scrollTop;
          var top_div = document.getElementById("top_div");
          var s = document.documentElement.scrollTop || document.body.scrollTop;
          //var top_div1 = document.getElementById("top_div1");
          if (t >= 200) {
            top_div.style.display = "block";
          } else {
            top_div.style.display = "none";
          }


        }


        function Show_Hidden(btnGotoTop3) {
          if (btnGotoTop3.style.display == "block") {
            btnGotoTop3.style.display = 'none';
          } else {
            btnGotoTop3.style.display = 'block';
          }
        }
      </script>
    </div>
    <script language="javascript" type="text/javascript">
      // var Path = new Object();
      // Path.Skin = "http://hy.yungoucms.cn/statics/templates/teyunbao";
      // Path.Webpath = "http://hy.yungoucms.cn/?";

      var Base = {
        head: document.getElementsByTagName("head")[0] || document.documentElement,
        Myload: function (B, A) {
          this.done = false;
          B.onload = B.onreadystatechange = function () {
            if (!this.done && (!this.readyState || this.readyState === "loaded" || this.readyState === "complete")) {
              this.done = true;
              A();
              B.onload = B.onreadystatechange = null;
              if (this.head && B.parentNode) {
                this.head.removeChild(B)
              }
            }
          }
        },
        getScript: function (A, C) {
          var B = function () { };
          if (C != undefined) {
            B = C
          }
          var D = document.createElement("script");
          D.setAttribute("language", "javascript");
          D.setAttribute("type", "text/javascript");
          D.setAttribute("src", A);
          this.head.appendChild(D);
          this.Myload(D, B)
        },
        getStyle: function (A, B) {
          var B = function () { };
          if (callBack != undefined) {
            B = callBack
          }
          var C = document.createElement("link");
          C.setAttribute("type", "text/css");
          C.setAttribute("rel", "stylesheet");
          C.setAttribute("href", A);
          this.head.appendChild(C);
          this.Myload(C, B)
        }
      }

      function GetVerNum() {
        var D = new Date();
        return D.getFullYear().toString().substring(2, 4) + '.' + (D.getMonth() + 1) + '.' + D.getDate() + '.' + D.getHours() + '.' + (D.getMinutes() < 10 ? '0' : D.getMinutes().toString().substring(0, 1))
      }
      //  // Base.getScript('http://hy.yungoucms.cn/statics/templates/teyunbao/js/mobile/Bottom.js');



      $(function () {
        document.body.addEventListener('touchstart', function () { /*兼容IOS元素:active事件*/ });

        //弹出虚拟键盘
        $("#keyboard").prev("label").click(function (e) {
          //阻止冒泡
          if (e && e.stopPropagation) {//非IE浏览器
            e.stopPropagation();
          } else {//IE浏览器
            window.event.cancelBubble = true;
          }

          $('#keyboard').slideToggle(200);
        });
        //自动隐藏键盘
        $(window).scroll(function () {
          $("#keyboard").hide()
        });
        $("html,body").click(function () {
          $("#keyboard").hide();
        });
        $("#keyboard").click(function (e) {
          //阻止冒泡
          if (e && e.stopPropagation) {//非IE浏览器
            e.stopPropagation();
          } else {//IE浏览器
            window.event.cancelBubble = true;
          }
        });

        //键盘点击事件
        $("#keyboard li").click(function () {
          var tip = $("#keyboard");
          var label = tip.prev("label");
          var index = $(this).index(), now = label.text(), newNum;

          if (index == 10) { //退格
            if (now.length > 1) {
              newNum = parseInt(now.slice(0, -1));
            } else {
              newNum = "";
            }
          } else if (index == 11) { //一键更改数量
            var val = $("#allNum").val();
            var t = $("#all");
            var A = ($(window).width()) / 2 - t.offset().left - 127;
            if (val == "" || val == 0) {
              //$.PageDialog.fail("请输入数量", t, -90, A);
              return false;
            } else { //开始向后台传输数据
              tip.hide();
              val = parseInt(val);
              var len = $("input[id*='txtNum']").length, sids = "", sid;

              for (var i = 0; i < len; i++) {
                sid = parseInt($("input[id*='txtNum']").eq(i).attr("id").replace("txtNum", ""));
                if (i != (len - 1)) {
                  sids += sid + ",";
                } else {
                  sids += sid;
                }
              }
              // $.getJSON("http://hy.yungoucms.cn/?/mobile/ajax/addAllToCart/"+sids+"/"+val,function (json) {
              //     if (json.success == true) {
              //         $.PageDialog.fail("Update succeeded, page refreshing", t, -100, A);
              //         setTimeout(function () {
              //             window.location.reload(true);
              //         }, 2000);
              //     } else {
              //         $.PageDialog.fail("Update failed", t, -100, A);
              //     }
              // })
            }
          } else { //数字按钮
            var keyNum = $(this).text();
            newNum = parseInt(now + keyNum);
            var A = ($(window).width()) / 2 - tip.offset().left - 146;
            var notice;
            if (newNum == 0) {
              notice = "Must be greater than 0";
              $.PageDialog.fail(notice, tip, -246, A);
              return false;
            }
            if (newNum > 1000) {
              notice = "Cannot be greater than 1000";
              $.PageDialog.fail(notice, tip, -246, A);
              return false;
            }
          }

          label.text(newNum);
          $("#allNum").val(newNum);
        });

        //一键梭哈
        $("#addMore").click(function () {
          var t = $(this);
          var A = ($(window).width()) / 2 - t.offset().left - 127;
          //     $.getJSON("http://hy.yungoucms.cn/?/mobile/shopajax/addAllCartlist", function (json) {
          // 	$.PageDialog.fail("One click suoha success! Page refreshing");
          // 	setTimeout(function () {
          //                 window.location.reload(true);
          //             }, 2000);
          // });
        });

        //一键添加人气商品
        $("#addAll").click(function () {
          var t = $(this);
          var A = ($(window).width()) / 2 - t.offset().left - 127;
          //  $.getJSON("http://hy.yungoucms.cn/?/mobile/ajax/addAll", function (json) {
          //       if (json.code == 0) {
          //           $.PageDialog.fail("Successfully added, page refreshing", t, -100, A);
          //           setTimeout(function () {
          //               window.location.reload(true);
          //           }, 2000);
          //       } else {
          //           $.PageDialog.fail("Add failure", t, -100, A);
          //       }
          //   });            
        })
        //清空购物车
        $("#clearAll").click(function () {
          $("#keyboard").hide();
          var t = $(this);
          var A = ($(window).width()) / 2 - t.offset().left - 127;
          // $.getJSON("http://hy.yungoucms.cn/?/mobile/ajax/delAllCartItem", function (json) {
          //     if (json.success == true) {
          //         $.PageDialog.fail("Empty successfully, page refreshing", t, -100, A);
          //         setTimeout(function () {
          //             window.location.reload(true);
          //         }, 2000);
          //     } else {
          //         $.PageDialog.fail("Emptying failure", t, -100, A);
          //     }
          // });
        });

        //添加到购物车
        $(document).on("click", '.gRate', function () {
          var codeid = $(this).attr('codeid');
          var t = $(this);
          var A = ($(window).width()) / 2 - t.offset().left - 127;
          // $.getJSON('http://hy.yungoucms.cn/?/mobile/ajax/addShopCart/'+codeid+'/1',function(data){
          //     if(data.code==1){
          //          $.PageDialog.fail("Failed to join cart！");
          //     }else if(data.code==0){
          //     	var htm="<em>"+data.num+"</em>";
          //     	$("#btnCart").html(htm);
          //          $.PageDialog.ok("Shopping cart has been added, please refresh the page to view！");           
          //     }
          // });
        });

      });
    </script>
  </div>

</body>

</html>